﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace CsharpTrainer.Core.Reflection
{
    public class GenericReflectionHelper<T>
    {
        public static List<string> GetProperties()
        {
            Type t = typeof(T);
            
            List<string> propertyList = new List<string>();
            PropertyInfo[] properties = t.GetProperties();
            foreach (PropertyInfo property in properties)
            {
                propertyList.Add(property.Name);
            }

            return propertyList;
        }
    }
}
